Quantum Circuit Studies with Two-Level Defects of Aluminum Oxide in a Polycrystalline Phase, Amorphous Phase, and at a Metal Surface