Flux penetration and a.c. losses in superconducting niobium