Spin and lattice excitations of a BiFeO3 thin film and ceramics