Reducing intrinsic loss in superconducting resonators by surface treatment and deep etching of silicon substrates