Wavefront-obstacle interactions and the initiation of reentry in excitable media