An elementary proof of Mather's necessary conditions for determinacy