A simple method of shower localization and identification in laterally segmented calorimeters