Nonideal behaviour of buried channel CCDs caused by oxide and bulk silicon traps