Dyes with amino groups and with onium groups