Electromagnetic counterparts of black hole–neutron star mergers: dependence on the neutron star properties