Colouring mechanism of dyed KDP crystal by quantum chemistry