A smart displacement based (SDB) beam element with distributed plasticity