Diagnostics of active galaxies I. Modeling the infrared properties of dusty cores of starburst galaxies