An infrared study of the NGC 7538 region