how did egyptians believe the pharaoh was related to the gods