Fabrication of core–shell Pt–Ni(OH)2 nanosheets on Ni foam and investigation on its detection performance of ammonia–nitrogen in lake and sea water