Porting the COSMO dynamical core to heterogeneous platforms using STELLA Library