Water and ammonia abundances in S140 with the Odin satellite