Accumulation of Stark-decelerated NH molecules in a magnetic trap