A man has been jailed for eight and a half years for sexually assaulting a child, while they were sleeping, in Milton Keynes.