Optical and infrared properties of active galactic nuclei in the Lockman Hole