Nature of the apical and planar oxygen bonds in the Sr_{n+1}Ru_{n}O_{3n+1} family (n=1,2,3)