Framework for functional tree simulation applied to 'golden delicious' apple trees