Magnetic phase transitions and linear magnetic dichroism in manganese-doped copper metaborate (Cu,Mn)B2O4