Maine lawmakers craft legislation to preserve retail net metering