Electronic and optical properties of borophene and graphene with an adsorbed ionic liquid: A density functional theory study