Block operator matrices and spectral decompositions