The nature of the nuclear sources in M82 and NGC 253