Switching time of planar ferroelectric capacitors using strontium titanate and barium strontium titanate films