Light-curve and spectral properties of ultrastripped core-collapse supernovae leading to binary neutron stars