Analytical mean-field approach to the phase-diagram of ultracold bosons in optical superlattices