New device could solve hard water problems