Numerical simulation of strong expansion and collapse of cavitation bubbles with centers located in a straight line