Robust and Energy-Efficient PPG-Based Heart-Rate Monitoring