who was the pharaoh before and after khafre?