Constrained Decompositions of Integer Matrices and their Applications to Intensity Modulated Radiation Therapy