Hi absorption in 3C 49 and 3C 268.3. Probing the environment of compact steep spectrum and GHz peaked spectrum sources