Modeling Molecular-Line Emission from Circumstellar Disks