Operator Cosine Functions and Boundary Value Problems