Endoprostheses and arthroprostheses for resection of the proximal femur