Convex optimization methods for adaptive radiation therapy