Optimal controls of hyperbolic equations in domains with oscillating boundary