The effects of dust on the derived photometric parameters of disks and bulges in spiral galaxies