Cleanup attribution control

In this PR, the attribution control will now use the layers from ``frameState.layersArray`` rather than from ``map.getLayers()`` and will remove the ``attributionElementRenderedVisible_`` property which was not used.
So the attribution now works in a similar way as the logo control.