Submillimeter lines from circumstellar disks around pre-main sequence stars