Correlation of surface topography and flux pinning in superconducting YBaCuO films