Extensive analysis of the formation mechanism of BaSnO3 by solid-state reaction between BaCO3 and SnO2