Charged domain walls in improper ferroelectric hexagonal manganites and gallates