Loss-induced limits to phase measurement precision with maximally entangled states