TPG nears deal to buy German metering company for up to €7bn