Single-particle spectral function for <sup>16</sup>O and the (e,e'p) cross section