Generation of ground motion fields only within a certain distance from the rupture

Addresses https://bugs.launchpad.net/openquake/+bug/1121940

For a clean diff, https://github.com/gem/oq-engine/pull/1033 should land first