Superconducting granular aluminum resonators resilient to magnetic fields up to 1 Tesla