Synchronization of heart sounds with pulse from dorsalis pedis for S1 and S2 detection