how petroleum is formed