Benchmark study for the application of density functional theory to the prediction of octahedral tilting in perovskites