Classical and quantum Big Brake cosmology for scalar field and tachyonic models