Critical behavior of a microemulsion studied by small-angle neutron scattering