Calculating percent depth dose with the electron pencil‐beam redefinition algorithm