how does a sewage treatment plant work