Ac-driven nonlinear Schrödinger equation and double sine-Gordon equation: Numerical study of complexes of localized states