Vertical structure models of T Tauri and Herbig Ae/Be disks