Estimation of 3D shape, internal density and mechanics of proximal femur by combining bone mineral density images with shape and density templates