Consistent cluster model description of the electromagnetic properties of lithium and beryllium nuclei