Optical tuning of three-dimensional photonic crystals fabricated by femtosecond direct writing