First-principles method for impurities in quantum fluids: Positron in an electron gas