Estimates for wave and Klein-Gordon equations on modulation spaces