Effects of internal dust on the narrow-line region Lyman and Balmer decrements