Radiative transfer in circumstellar disks - I. 1D models for GQ Lupi