Weak and electromagnetic mechanisms of neutrino-pair photoproduction in a strongly magnetized electron gas