Effective conductivity in random porous media with convex and non-convex porosity