Direct determination of light beams’ topological charges using diffraction