Sufficient and necessary conditions for local rigidity of CR mappings and higher order infinitesimal deformations