Shape evolution of patterned amorphous and polycrystalline silicon microarray thin film electrodes caused by lithium insertion and extraction