Decuplet baryons in nuclear and hyperonic medium