An algorithm for FHR estimation from foetal phonocardiographic signals