Open quantum systems and the grand canonical ensemble