Characterisation of the BaTiO3/p-Si interface and applications