replaced stack sizes in etx_beaconing by variables

resolves #356

Note: This PR only replaces the sizes by equivalent variables, but does not evaluate if the stack sizes are appropriate.