Atomic and electronic structure of ultrathin fluoride barrier layers and the oxide/Si interface