IRDA-based Heart Frequency Monitoring for Mobile Healthcare Applications