Sol-gel processed ferroelectric barium titanate thin films and ceramics