The amalgamated duplication of a ring along a semidualizing ideal