Three-dimensional analysis of electromagnetic forces in some geometries with cylindrical symmetry