A proximal alternating linearization method for minimizing the sum of two convex functions