VRI photometry of stars in the fields of 12 BL Lacertae objects