Porsche has said it has taken a stake of 10% in Croatia's technology and electric sports car maker Rimac Automobili and and its subsidiary Greyp Bikes.