Concentration Inequalities of Random Matrices and Solving Ptychography with a Convex Relaxation