Theory of intrinsic localized modes in diatomic chains: beyond the rotating wave approximation