Make `exclude_borders` option in peak_local_max nD

Prior modifications to peak_local_max make it nd-aware, but this does
not extend to the exclude_borders option. This commit changes that.