Self-similar chameleon Jordan-Brans-Dicke cosmological models