how long did joseph live in egypt