Structural phase transitions in nanosized ferroelectric barium strontium titanate films