Using signals to detect oil and gas lithology