Variational modeling and assembly constraints in tolerance analysis of rigid part assemblies: planar and cylindrical features