Peterborough secured their first ever Johnstone's Paint Trophy triumph with a 3-1 victory over Chesterfield at Wembley.