Control of magnetic states and spin interactions in bilayer CrCl3 with strain and electric fields: an ab initio study