Optimal H2 model reduction for mechanical systems