Importance of the divertor configuration for attaining the H-regime in ASDEX