Porsche AG has taken a 10% stake in Croatian technology and electric sports car company Rimac Automobili.