Quantum oscillations in the SmFeAsO parent compound and superconducting SmFeAs(O,F)