Exact quantum-mechanical states of a model atom in a uniform magnetic field and in a laser field