Geometry of Batalin-Vilkovisky quantization