in fact , he was such a brilliant student that by the time he was 23 years old he had earned a phd in physics , along with three master 's degrees in differing engineering disciplines ( molecular , mechanical and electrical ) .