Robust bone surface and acoustic shadow segmentation from ultrasound for computer assisted orthopedic surgery