Former Marine who punched cop sentenced to prison