Convex methods for radiation treatment planning