An accurate and stable bed-based ballistocardiogram measurement and analysis system