Title: Transient electromagnetic response of a sphere in a layered medium