Demagnetizing fields in all-optical switching. (14th December 2017)