Bulk and surface plasmon excitation induced by charged particles moving near a solid surface