Origin of the dimpled critical-current-versus-magnetic-field-angle relation in YBa2Cu3O7 films studied using sub-MeV ion irradiation