Automatic measurement of head-perineum distance during intrapartum ultrasound: description of the technique and preliminary results