Effects of pH and ionic strength on the self-assembly of silica colloids to opaline photonic structures