Harmonic balance approach to predict period-doubling bifurcations in nearly symmetric neural networks