Dependence of ion‐matrix dose on density for planar, cylindrical, and spherical electrodes