Functional oxide films and interfaces: ferroelectric BaTiO₃ films on Si(001) and conducting (110) and (111) LaAlO₃/SrTiO₃ interfaces