Optimal design of blocked and split-plot experiments for fixed effects and variance component estimation