Beamlet-based treatment plan optimization in external beam radiation therapy