Tropical Storm Boris has formed and is expected to bring heavy rain to parts of southern Mexico's Pacific coast.